<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    img {
        width: 30%;
    }
</style>
<body>
<img th:src="@{/img/pig.jpg}">
</body>
</html>